local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1, L35_1, L36_1, L37_1, L38_1, L39_1, L40_1, L41_1
L0_1 = {}
monsters = L0_1
L0_1 = {}
npcs = L0_1
L0_1 = {}
L1_1 = {}
L1_1.config_id = 20001
L1_1.gadget_id = 70690010
L2_1 = {}
L2_1.x = 1109.564
L2_1.y = 343.594
L2_1.z = -1085.817
L1_1.pos = L2_1
L2_1 = {}
L2_1.x = 0.0
L2_1.y = 0.0
L2_1.z = 0.0
L1_1.rot = L2_1
L1_1.level = 1
L2_1 = {}
L2_1.config_id = 20002
L2_1.gadget_id = 70690001
L3_1 = {}
L3_1.x = 1096.311
L3_1.y = 430.212
L3_1.z = -1089.881
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 265.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L3_1.config_id = 20003
L3_1.gadget_id = 70690001
L4_1 = {}
L4_1.x = 1083.799
L4_1.y = 430.212
L4_1.z = -1089.881
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 356.668
L4_1.y = 265.0
L4_1.z = 332.342
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 20004
L4_1.gadget_id = 70690001
L5_1 = {}
L5_1.x = 1070.258
L5_1.y = 430.212
L5_1.z = -1089.89
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 265.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 20005
L5_1.gadget_id = 70690001
L6_1 = {}
L6_1.x = 1061.643
L6_1.y = 430.212
L6_1.z = -1089.89
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 265.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 20006
L6_1.gadget_id = 70690001
L7_1 = {}
L7_1.x = 1044.961
L7_1.y = 430.212
L7_1.z = -1089.647
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 265.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 20008
L7_1.gadget_id = 70690001
L8_1 = {}
L8_1.x = 1031.174
L8_1.y = 430.212
L8_1.z = -1089.643
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 265.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 20009
L8_1.gadget_id = 70690001
L9_1 = {}
L9_1.x = 1014.632
L9_1.y = 430.212
L9_1.z = -1089.65
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 265.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 20010
L9_1.gadget_id = 70690001
L10_1 = {}
L10_1.x = 1004.007
L10_1.y = 430.212
L10_1.z = -1089.649
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 265.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 20011
L10_1.gadget_id = 70690001
L11_1 = {}
L11_1.x = 997.145
L11_1.y = 430.212
L11_1.z = -1089.651
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 280.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 20012
L11_1.gadget_id = 70690001
L12_1 = {}
L12_1.x = 991.398
L12_1.y = 430.212
L12_1.z = -1088.309
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 300.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 20013
L12_1.gadget_id = 70690001
L13_1 = {}
L13_1.x = 985.818
L13_1.y = 430.212
L13_1.z = -1085.037
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 320.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 20015
L13_1.gadget_id = 70690001
L14_1 = {}
L14_1.x = 976.098
L14_1.y = 430.212
L14_1.z = -1074.349
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 320.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 20016
L14_1.gadget_id = 70690001
L15_1 = {}
L15_1.x = 966.323
L15_1.y = 430.212
L15_1.z = -1060.831
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 320.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 20017
L15_1.gadget_id = 70690013
L16_1 = {}
L16_1.x = 951.274
L16_1.y = 387.0
L16_1.z = -1048.067
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 0.0
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 20018
L16_1.gadget_id = 70690001
L17_1 = {}
L17_1.x = 943.568
L17_1.y = 444.468
L17_1.z = -1047.548
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 280.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 20020
L17_1.gadget_id = 70690001
L18_1 = {}
L18_1.x = 932.954
L18_1.y = 444.468
L18_1.z = -1045.94
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 300.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 20021
L18_1.gadget_id = 70690001
L19_1 = {}
L19_1.x = 919.756
L19_1.y = 443.513
L19_1.z = -1037.712
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 25.0
L19_1.y = 306.463
L19_1.z = 14.279
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 20022
L19_1.gadget_id = 70690001
L20_1 = {}
L20_1.x = 915.135
L20_1.y = 442.034
L20_1.z = -1034.336
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 25.0
L20_1.y = 304.987
L20_1.z = 14.279
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 20023
L20_1.gadget_id = 70690001
L21_1 = {}
L21_1.x = 909.528
L21_1.y = 439.144
L21_1.z = -1030.212
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 25.0
L21_1.y = 304.987
L21_1.z = 14.279
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 20024
L21_1.gadget_id = 70690001
L22_1 = {}
L22_1.x = 904.525
L22_1.y = 436.938
L22_1.z = -1026.191
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 25.0
L22_1.y = 304.987
L22_1.z = 14.279
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 20025
L22_1.gadget_id = 70690001
L23_1 = {}
L23_1.x = 895.213
L23_1.y = 432.796
L23_1.z = -1019.536
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 5.0
L23_1.y = 304.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 20026
L23_1.gadget_id = 70690001
L24_1 = {}
L24_1.x = 888.445
L24_1.y = 431.541
L24_1.z = -1014.913
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 5.0
L24_1.y = 304.0
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 20027
L24_1.gadget_id = 70690001
L25_1 = {}
L25_1.x = 881.108
L25_1.y = 430.931
L25_1.z = -1009.88
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 25.0
L25_1.y = 304.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 20028
L25_1.gadget_id = 70690001
L26_1 = {}
L26_1.x = 865.347
L26_1.y = 422.346
L26_1.z = -997.004
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 10.0
L26_1.y = 327.075
L26_1.z = 7.951
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L26_1.config_id = 20029
L26_1.gadget_id = 70690001
L27_1 = {}
L27_1.x = 860.078
L27_1.y = 420.273
L27_1.z = -990.692
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 20.0
L27_1.y = 327.0
L27_1.z = 7.951
L26_1.rot = L27_1
L26_1.level = 1
L27_1 = {}
L27_1.config_id = 20030
L27_1.gadget_id = 70690001
L28_1 = {}
L28_1.x = 854.783
L28_1.y = 417.642
L28_1.z = -982.864
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 30.0
L28_1.y = 327.0
L28_1.z = 7.951
L27_1.rot = L28_1
L27_1.level = 1
L28_1 = {}
L28_1.config_id = 20031
L28_1.gadget_id = 70690001
L29_1 = {}
L29_1.x = 849.19
L29_1.y = 413.717
L29_1.z = -974.932
L28_1.pos = L29_1
L29_1 = {}
L29_1.x = 35.0
L29_1.y = 327.0
L29_1.z = 7.951
L28_1.rot = L29_1
L28_1.level = 1
L29_1 = {}
L29_1.config_id = 20032
L29_1.gadget_id = 70690001
L30_1 = {}
L30_1.x = 841.853
L30_1.y = 407.933
L30_1.z = -964.363
L29_1.pos = L30_1
L30_1 = {}
L30_1.x = 45.0
L30_1.y = 327.0
L30_1.z = 7.951
L29_1.rot = L30_1
L29_1.level = 1
L30_1 = {}
L30_1.config_id = 20033
L30_1.gadget_id = 70690001
L31_1 = {}
L31_1.x = 835.069
L31_1.y = 398.82
L31_1.z = -954.681
L30_1.pos = L31_1
L31_1 = {}
L31_1.x = 45.0
L31_1.y = 327.0
L31_1.z = 7.951
L30_1.rot = L31_1
L30_1.level = 1
L31_1 = {}
L31_1.config_id = 20034
L31_1.gadget_id = 70690001
L32_1 = {}
L32_1.x = 828.751
L32_1.y = 389.952
L32_1.z = -945.351
L31_1.pos = L32_1
L32_1 = {}
L32_1.x = 60.0
L32_1.y = 327.0
L32_1.z = 7.951
L31_1.rot = L32_1
L31_1.level = 1
L32_1 = {}
L32_1.config_id = 20035
L32_1.gadget_id = 70690001
L33_1 = {}
L33_1.x = 827.767
L33_1.y = 358.802
L33_1.z = -938.635
L32_1.pos = L33_1
L33_1 = {}
L33_1.x = 89.98
L33_1.y = 317.334
L33_1.z = 0.0
L32_1.rot = L33_1
L32_1.level = 1
L33_1 = {}
L33_1.config_id = 20036
L33_1.gadget_id = 70690001
L34_1 = {}
L34_1.x = 827.767
L34_1.y = 349.962
L34_1.z = -938.635
L33_1.pos = L34_1
L34_1 = {}
L34_1.x = 90.0
L34_1.y = 317.334
L34_1.z = 0.0
L33_1.rot = L34_1
L33_1.level = 1
L34_1 = {}
L34_1.config_id = 20037
L34_1.gadget_id = 70690001
L35_1 = {}
L35_1.x = 827.767
L35_1.y = 335.193
L35_1.z = -938.635
L34_1.pos = L35_1
L35_1 = {}
L35_1.x = 89.98
L35_1.y = 317.334
L35_1.z = 0.0
L34_1.rot = L35_1
L34_1.level = 1
L35_1 = {}
L35_1.config_id = 20038
L35_1.gadget_id = 70690001
L36_1 = {}
L36_1.x = 827.767
L36_1.y = 324.256
L36_1.z = -938.635
L35_1.pos = L36_1
L36_1 = {}
L36_1.x = 90.0
L36_1.y = 317.334
L36_1.z = 0.0
L35_1.rot = L36_1
L35_1.level = 1
L36_1 = {}
L36_1.config_id = 20039
L36_1.gadget_id = 70690001
L37_1 = {}
L37_1.x = 827.767
L37_1.y = 314.697
L37_1.z = -938.635
L36_1.pos = L37_1
L37_1 = {}
L37_1.x = 89.98
L37_1.y = 317.334
L37_1.z = 0.0
L36_1.rot = L37_1
L36_1.level = 1
L37_1 = {}
L37_1.config_id = 20040
L37_1.gadget_id = 70690001
L38_1 = {}
L38_1.x = 827.767
L38_1.y = 304.36
L38_1.z = -938.635
L37_1.pos = L38_1
L38_1 = {}
L38_1.x = 90.0
L38_1.y = 317.334
L38_1.z = 0.0
L37_1.rot = L38_1
L37_1.level = 1
L38_1 = {}
L38_1.config_id = 20041
L38_1.gadget_id = 70220011
L39_1 = {}
L39_1.x = 1110.587
L39_1.y = 343.789
L39_1.z = -1086.556
L38_1.pos = L39_1
L39_1 = {}
L39_1.x = 0.0
L39_1.y = 0.0
L39_1.z = 0.0
L38_1.rot = L39_1
L38_1.level = 1
L39_1 = {}
L39_1.config_id = 20047
L39_1.gadget_id = 70210102
L40_1 = {}
L40_1.x = 966.452
L40_1.y = 245.435
L40_1.z = -924.024
L39_1.pos = L40_1
L40_1 = {}
L40_1.x = 0.0
L40_1.y = 0.0
L40_1.z = 0.0
L39_1.rot = L40_1
L39_1.level = 26
L39_1.chest_drop_id = 1000100
L39_1.drop_count = 1
L39_1.persistent = true
L0_1[1] = L1_1
L0_1[2] = L2_1
L0_1[3] = L3_1
L0_1[4] = L4_1
L0_1[5] = L5_1
L0_1[6] = L6_1
L0_1[7] = L7_1
L0_1[8] = L8_1
L0_1[9] = L9_1
L0_1[10] = L10_1
L0_1[11] = L11_1
L0_1[12] = L12_1
L0_1[13] = L13_1
L0_1[14] = L14_1
L0_1[15] = L15_1
L0_1[16] = L16_1
L0_1[17] = L17_1
L0_1[18] = L18_1
L0_1[19] = L19_1
L0_1[20] = L20_1
L0_1[21] = L21_1
L0_1[22] = L22_1
L0_1[23] = L23_1
L0_1[24] = L24_1
L0_1[25] = L25_1
L0_1[26] = L26_1
L0_1[27] = L27_1
L0_1[28] = L28_1
L0_1[29] = L29_1
L0_1[30] = L30_1
L0_1[31] = L31_1
L0_1[32] = L32_1
L0_1[33] = L33_1
L0_1[34] = L34_1
L0_1[35] = L35_1
L0_1[36] = L36_1
L0_1[37] = L37_1
L0_1[38] = L38_1
L0_1[39] = L39_1
gadgets = L0_1
L0_1 = {}
L1_1 = {}
L1_1.config_id = 20043
L2_1 = RegionShape
L2_1 = L2_1.SPHERE
L1_1.shape = L2_1
L1_1.radius = 10
L2_1 = {}
L2_1.x = 828.46
L2_1.y = 291.621
L2_1.z = -938.657
L1_1.pos = L2_1
L2_1 = {}
L2_1.config_id = 20046
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 20
L3_1 = {}
L3_1.x = 830.027
L3_1.y = 398.99
L3_1.z = -949.969
L2_1.pos = L3_1
L0_1[1] = L1_1
L0_1[2] = L2_1
regions = L0_1
L0_1 = {}
L1_1 = {}
L1_1.name = "ANY_GADGET_DIE_20042"
L2_1 = EventType
L2_1 = L2_1.EVENT_ANY_GADGET_DIE
L1_1.event = L2_1
L1_1.source = ""
L1_1.condition = ""
L1_1.action = "action_EVENT_ANY_GADGET_DIE_20042"
L2_1 = {}
L2_1.name = "ENTER_REGION_20043"
L3_1 = EventType
L3_1 = L3_1.EVENT_ENTER_REGION
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ENTER_REGION_20043"
L2_1.action = "action_EVENT_ENTER_REGION_20043"
L2_1.tag = "8888"
L3_1 = {}
L3_1.name = "CHALLENGE_SUCCESS_20044"
L4_1 = EventType
L4_1 = L4_1.EVENT_CHALLENGE_SUCCESS
L3_1.event = L4_1
L3_1.source = "6666"
L3_1.condition = ""
L3_1.action = "action_EVENT_CHALLENGE_SUCCESS_20044"
L4_1 = {}
L4_1.name = "CHALLENGE_FAIL_20045"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_FAIL
L4_1.event = L5_1
L4_1.source = "6666"
L4_1.condition = ""
L4_1.action = "action_EVENT_CHALLENGE_FAIL_20045"
L5_1 = {}
L5_1.name = "ENTER_REGION_20046"
L6_1 = EventType
L6_1 = L6_1.EVENT_ENTER_REGION
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_ENTER_REGION_20046"
L5_1.action = "action_EVENT_ENTER_REGION_20046"
L6_1 = {}
L6_1.name = "GADGET_STATE_CHANGE_20048"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_20048"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_20048"
L0_1[1] = L1_1
L0_1[2] = L2_1
L0_1[3] = L3_1
L0_1[4] = L4_1
L0_1[5] = L5_1
L0_1[6] = L6_1
triggers = L0_1
L0_1 = {}
variables = L0_1
L0_1 = {}
L0_1.suite = 1
L0_1.end_suite = 0
L0_1.rand_suite = false
init_config = L0_1
L0_1 = {}
L1_1 = {}
L2_1 = {}
L1_1.monsters = L2_1
L2_1 = {}
L3_1 = 20041
L2_1[1] = L3_1
L1_1.gadgets = L2_1
L2_1 = {}
L1_1.regions = L2_1
L2_1 = {}
L3_1 = "ANY_GADGET_DIE_20042"
L2_1[1] = L3_1
L1_1.triggers = L2_1
L1_1.rand_weight = 100
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 20001
L5_1 = 20002
L6_1 = 20003
L7_1 = 20004
L8_1 = 20005
L9_1 = 20006
L10_1 = 20008
L11_1 = 20009
L12_1 = 20010
L13_1 = 20011
L14_1 = 20012
L15_1 = 20013
L16_1 = 20015
L17_1 = 20016
L18_1 = 20017
L19_1 = 20018
L20_1 = 20020
L21_1 = 20021
L22_1 = 20022
L23_1 = 20023
L24_1 = 20024
L25_1 = 20025
L26_1 = 20026
L27_1 = 20027
L28_1 = 20028
L29_1 = 20029
L30_1 = 20030
L31_1 = 20031
L32_1 = 20032
L33_1 = 20033
L34_1 = 20034
L35_1 = 20035
L36_1 = 20036
L37_1 = 20037
L38_1 = 20038
L39_1 = 20039
L40_1 = 20040
L41_1 = 20047
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L3_1[13] = L16_1
L3_1[14] = L17_1
L3_1[15] = L18_1
L3_1[16] = L19_1
L3_1[17] = L20_1
L3_1[18] = L21_1
L3_1[19] = L22_1
L3_1[20] = L23_1
L3_1[21] = L24_1
L3_1[22] = L25_1
L3_1[23] = L26_1
L3_1[24] = L27_1
L3_1[25] = L28_1
L3_1[26] = L29_1
L3_1[27] = L30_1
L3_1[28] = L31_1
L3_1[29] = L32_1
L3_1[30] = L33_1
L3_1[31] = L34_1
L3_1[32] = L35_1
L3_1[33] = L36_1
L3_1[34] = L37_1
L3_1[35] = L38_1
L3_1[36] = L39_1
L3_1[37] = L40_1
L3_1[38] = L41_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 20043
L5_1 = 20046
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_20043"
L5_1 = "CHALLENGE_SUCCESS_20044"
L6_1 = "CHALLENGE_FAIL_20045"
L7_1 = "ENTER_REGION_20046"
L8_1 = "GADGET_STATE_CHANGE_20048"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L0_1[1] = L1_1
L0_1[2] = L2_1
suites = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ActiveChallenge
  L3_2 = A0_2
  L4_2 = 6666
  L5_2 = 184
  L6_2 = 120
  L7_2 = 4
  L8_2 = 8888
  L9_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.AddQuestProgress
  L3_2 = A0_2
  L4_2 = "4121213"
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.AddExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 303001020
  L5_2 = 2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_ANY_GADGET_DIE_20042 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 20043 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 0 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_20043 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.StopChallenge
  L3_2 = A0_2
  L4_2 = 6666
  L5_2 = 1
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_20043 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddQuestProgress
  L3_2 = A0_2
  L4_2 = "4121211"
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_20044 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddQuestProgress
  L3_2 = A0_2
  L4_2 = "4121299"
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 303001020
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_20045 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 20046 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 0 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_20046 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddQuestProgress
  L3_2 = A0_2
  L4_2 = "4121212"
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_20046 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 20047 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_20048 = L0_1
function L0_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddQuestProgress
  L3_2 = A0_2
  L4_2 = "4121206"
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_20048 = L0_1
